﻿using System.Collections.Generic;
//
namespace PerceptiveMCAPI.Types
{
	public class listBatchSubscribeResults
	{
		public int add_count { get; set; }
		public int update_count { get; set; }
		public int error_count { get; set; }
		public List<Error> errors { get; set; }

		public listBatchSubscribeResults()
		{
			errors = new List<Error>();
		}
		// ------------------------------------------
		public class Error
		{
			public int code { get; set; }
			public string message { get; set; }
			public string email { get; set; }

			public override string ToString()
			{
				return string.Format( "Email Address: {0}, Error Code: {1}, Message: {2}",
					email, code, message );
			}
		}
	}
}
